package com.lucher.mes.dao;

import java.util.List;

import com.lucher.mes.po.Workmachine;
import com.lucher.mes.po.Workorder;

public interface WorkorderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Workorder record);

    int insertSelective(Workorder record);

    Workorder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Workorder record);

    int updateByPrimaryKey(Workorder record);
    
    //自定义接口
    List<Workorder> findByList(Workorder record);
    List<Workorder> findByListForPage(Workorder record);
    int findByCount(Workorder record);
    Workorder findByOrdercode(String ordercode);
    //根据产线代码查询插线上对应的工序
    List<Workorder> findWorkorderByLineCode(String linecode);
}